package com.example.mytayunapi.Service;

import com.example.mytayunapi.Entity.PurchaseRequestInfo;
import com.example.mytayunapi.Mapper.PurchaseRequestInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PurchaseRequestInfoServiceImpl implements PurchaseRequestInfoService {
    @Autowired
    private PurchaseRequestInfoMapper purchaseRequestInfoMapper;

    @Override
    public List<PurchaseRequestInfo> selectPurchaseRequestsByUserId(String userId) {
        return purchaseRequestInfoMapper.selectPurchaseRequestsByUserId(userId);
    }

    @Override
    public Integer deletePurchaseRequest(Integer pmId) {
        return purchaseRequestInfoMapper.deletePurchaseRequest(pmId);
    }


}
